
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)

project(intro LANGUAGES C)

include_directories(../common)

set(COMPILE_ALL OFF)

list(APPEND _sources ../common/error.c)

if (COMPILE_ALL)
add_executable(seek 01_seek.c ${_sources})
add_executable(hole 02_hole.c ${_sources})
add_executable(mycat 03_mycat.c ${_sources})

else()
add_executable(fileflags 04_fileflags.c ${_sources})
endif()
